<div style="border: 1px solid #CCCCCC; margin-top:7px">
<table bgcolor="#f0f0f0" width="100%" cellspacing="2" cellpadding="5" border="0" >
	<tr>
		<td colspan="2"><div style="background-color:#f0f0f0; font-size:20px; font-weight:bold">Quản trị Logo</div></td>
	</tr>
	{if $msg}
	<tr bgcolor="{cycle values='#F7F7F7,#ffffff'}" valign="middle" style="cursor:hand;">
	   <td colspan="2"  align="left" style="padding:7px"><strong><font color="#FF0000">{$msg}</font></strong></td>
    </tr>
   {/if}
	<tr>
		<td width="12%">Ảnh: </td>
		<td width="25%"><input type="file" name="uploadLogo" id="uploadLogo" value="" class="textInput" /></td>
		<td rowspan="3" style="padding-left:10px;">{if $img_scr} <img src="{$img_scr}" /> {/if}</td>
	</tr>
	<tr>
		<td>Tiêu đề: </td>
		<td><input type="text" name="logoTitle" id="logoTitle" value="{$title}" class="textInput" style="width:200px;" /></td>
	</tr>

	<tr>
		<td>Ngày bắt đầu: </td>
		<td><input type="text" name="logoStartDate" id="logoStartDate" value="{$start_date}" class="textInput" style="width:100px;" /></td>
	</tr>
	<tr>
		<td>Ngày kết thúc: </td>
		<td><input type="text" name="logoEndDate" id="logoEndDate" value="{$end_date}" class="textInput" style="width:100px;" /></td>
	</tr>
	<tr>
		<td colspan="2" style="text-align:left;">
			<input type="checkbox" name="logoActive" id="logoActive" value="1" {if $active==1} checked="checked"{/if} style="width:auto;" /> <label for="logoActive" style="cursor:pointer">Sử dụng logo này</label>
		</td>
	</tr>
	<tr>
		<td></td>
		<td>
			 <input type="submit" id="submitLogo" name="submitLogo" value="{if $act=='edit'}Sửa Tin{else}Thêm Mới{/if}" />
		</td>
	</tr>	 
</table>
</div>
<div style="border: 1px solid #CCCCCC; margin-top:7px">
<table bgcolor="#f0f0f0" width="100%" cellspacing="0" cellpadding="10" border="0" >
	<tr>
		<th width="200px">Ảnh</th>
		<th nowrap>Tiêu đề</th>
		<th>Ngày bắt đầu</th>
		<th>Ngày kết thúc</th>
		<th>Người tạo</th>
		<th nowrap>Trạng thái</th>
		<th>Thao tác</th>
	</tr>
	{foreach from=$items item=items}
	<tr >
		<td align="center">
			<img src="{$items.img_src}" />			
		</td>
		<td align="left">{$items.title}</td>
		<td align="center">{$items.start_date}</td>
		<td align="center">{$items.end_date}</td>
		<td align="center">{$items.username}</td>
		<td align="center">{$items.name_status}</td>
		<td nowrap align="center">			
			{if $items.status==0}<a href="logo.html?active=1&id={$items.id}">Enable</a>{/if}
			{if $items.status==1}<a href="logo.html?active=0&id={$items.id}">Disable</a>{/if}
			&nbsp;|&nbsp;
			<a href="logo.html?act=edit&id={$items.id}">Edit</a>
			&nbsp;|&nbsp;
			<a onclick="return confirm('Bạn có chắc chắn muốn xóa Logo này không?')" href="logo.html?act=delete&id={$items.id}">Delete</a>
		</td>
	</tr>
	{/foreach}
</table>
</div>
<script type="text/javascript">
{literal}
jQuery(document).ready(function(){
	jQuery("#logoStartDate").datepicker();
	jQuery("#logoEndDate").datepicker();
});
{/literal} 
</script>		